<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2018/12/6
 * Time: 15:46
 * name:新增教师打卡信息
 * url:/erpUser/add_teacher_sign
 */

$ots_oscid = $route->bodyParams['ots_oscid'];               //班级ID
$ots_octid = $route->bodyParams['ots_octid'];               //课时ID
$ots_ouid  = $route->bodyParams['ots_ouid'];                //教师ID
$ots_creat_time  = $route->bodyParams['ots_creat_time'];    //添加时间

if(isset($ots_creat_time) == false){
    $ots_creat_time = time();
}
//写入数组
$insertArr = [
    'ots_oscid' => $ots_oscid,
    'ots_octid' => $ots_octid,
    'ots_ouid'  => $ots_ouid,
    'ots_creat_time'  => time(),
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_teacher_sign",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );